package 设计模式.fatoryabs.pizza.pizza.order;


import 设计模式.fatoryabs.pizza.pizza.BJCheesePizza;
import 设计模式.fatoryabs.pizza.pizza.BJGreekPizza;
import 设计模式.fatoryabs.pizza.pizza.Pizza;

public class BjFactory implements AbsFactory {

    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza=null;
        if (orderType.equals("BJgreek")){
            pizza=new BJGreekPizza();
        }else if (orderType.equals("BJcheese")){
            pizza=new BJCheesePizza();
        }
        return pizza;
    }
}
